//
//  ViewController.m
//  Tableviewcell
//
//  Created by liuchengming on 16/10/31.
//  Copyright © 2016年 liuchengming. All rights reserved.
//

#import "ViewController.h"
#import "WaitCell.h"

@interface ViewController ()
{
    NSMutableArray * data ;
}

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    NSURL * url = [NSURL URLWithString:@"http://xl18z.cn/list.php"];
    NSString * str = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:nil];
    NSLog(@"%@",str);
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    if (indexPath.row < data.count)
    {
        UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:@"dataCell"];
        
    }
    UITableViewCell * cells = [UITableViewCell new];
    
    return cells;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
